﻿<script type="text/javascript">
  function sprawdźDługość(pole1, ile, pole2)
  {
    var tf1 = document.getElementById(pole1);
    var tf2 = document.getElementById(pole2);
    if(!tf1 || !tf2 || !tf1.value) return;
    
    if (tf1.value.length >= 2)
      tf2.focus();
  }
</script>